﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace csharp_rentals_415.Models
{
    public abstract class RealEstate
    {
        public int UnitId { get; set; } // guid
        public string Address { get; set; } // full address
        public string Realtor { get; set; } // primary contact
        public int SquareFootage { get; set; } // sq ft
    }

    // entity rental
    public class Rental : RealEstate
    {
        public double RentAmount { get; set; } // cost of rent
       
    }
    // entity condo
    public class Condo : RealEstate
    {
        public double PurchaseAmount { get; set; }
    } 



    // Controller name, Name of Page,  Vm/ view model /vessel used to transport data to the view

    public class HomeIndexVm {
        public string Greeting { get; set; } // hello world
        // List rentals
        public List<RealEstate> Properties { get; set; }

        // vm for the Partial
        public string partialVm = "100 degrees";
    }

    // VM Edit page
    public class HomeEditVm
    {
        public int RentalId { get; set; } // guid
        public string Address { get; set; } // full address
        public string Realtor { get; set; } // primary contact
        public double RentAmount { get; set; } // cost of rent
        public int SquareFootage { get; set; } // sq ft

    }

}